﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Xml;

namespace Transformer.iHunter
{

    /// <summary>
    /// The interface of the message filter
    /// </summary>
    public interface IFilter
    {
        /// <summary>
        /// Filters the message.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <returns>True if the condition of the filter matches, otherwise false</returns>
        bool FilterMessage(IMessage message);

        /// <summary>
        /// Trains the specified message.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="result">The expected filtering result of the message</param>
        void Train(IMessage message, bool result);

    }
}

